package org.pz.mapper;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.pz.entity.UserEntity;

import java.util.List;

@Mapper
public interface UserMapper {

    //根据用户名获取用户信息
    UserEntity findUserByUserName(@Param("username") String username);

    void updateUserByUsername(@Param("user")UserEntity user);

    List<String> findAllUsername();
}
